home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / util1 / ed6patch.zip / READ_ME.TXT < prev   
Text File  |  1993-04-05  |  2KB  |  40 lines

  1. This program will fix the DOS 6.0 EDIT program so that when it is invoked 
  2. without a command line file name of a file to edit, *.* will appear instead of 
  3. *.TXT.  This will allow one to select the file to edit directly from the list.  
  4. This proved to be a very handy thing when implemented in DOS 5.0 using PATCH5ED 
  5. written by Frank Fischer.  This was so handy that I really felt bad about 
  6. upgrading to DOS 6.0.  Since the DOS 5 patch wouldn't work on DOS 6, I looked 
  7. at the Pascal program for PATCH5ED and could see that it wasn't too complex 
  8. even though it was certainly elegant.  I thought I might be able to patch the 
  9. prigram using Basic.  I found the *.TXT in QBASIC.EXE using the PCTools View 
  10. program.  The *.TXT starts at 2DC70h which, using a line length of 16 bytes, 
  11. makes it at the beginning of line number 2DC7h or 11719 decimal.  The 
  12. hexadecimal numbers start at zero, but the line count starts at one, so the 
  13. line number in ED6PATCH for the location of *.TXT is 11720.  This enabled me to 
  14. write the program.
  15.  
  16. PATCH5ED also saved a copy of the original program QBASIC.EXE when it patched 
  17. it, but that is too hard for me to do in BASIC.  If you want a copy, make it 
  18. before you start.  I'm writing all this stuff to tell you how easy it is and 
  19. next time you can modify the program yourself and run it with the DOS Qbasic.
  20.  
  21. The patch can be made by executing the program ED6PATCH.EXE while it is in the 
  22. same sub directory with QBASIC.EXE.
  23.  
  24. A safer way, one that is used by chickens like I, is to copy programs EDIT.COM 
  25. and QBASIC.EXE into a separate sub directory or disk.  Then copy ED6PATCH.EXE 
  26. to the sub directory or disk and execute it there.  You can then test it to be 
  27. sure it works OK before replacing it in DOS.
  28.  
  29. ED6PATCH.EXE was programed to do nothing to the QBASIC.EXE program if it didn't 
  30. find the *.TXT where it is supposed to be.  The Basic program is included for 
  31. those who would like to see it and possibly modify it.  It was written using 
  32. Quick Basic 4.5 but PATCH6ED.BAS can be run using Qbasic from DOS.
  33.  
  34.  
  35.  
  36. Charles E. (Ed) Washington
  37. 521 Canyon Dr.
  38. Solana Beach, CA  92075-1303
  39. (619) 481-9548
  40.